package com.mipo.client.javase.designerpattern.proxypattern.remoteproxy;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class InvocationDo implements InvocationHandler {
	private RemoteInvoke ri;
	public InvocationDo(RemoteInvoke ri) {
		this.ri = ri;
	}
	public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
		return ri.invoke(method, args);
	}
}